

from Base.base import Base
from selenium.webdriver.common.by import By
from time import sleep


class Page(Base):


    search_loc = (By.ID,'kw')
    anniu = (By.ID,'su')

    def search(self):
        self.get_url('https://www.baidu.com/')
        self.send_keys(self.search_loc,'西瓜')
        sleep(3)
        self.click(self.anniu)
        sleep(3)
